package com.macro.mall.pay.service.wechat.bo;

import com.macro.mall.common.api.input.BaseInput;
import com.macro.mall.ums.enums.UserSourceTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 微信退款input
 *
 * @author xuyanjun
 * @date 2020/1/19
 */
@Getter
@Setter
@Accessors(chain = true)
@Valid
public class WeChatRefundInput extends BaseInput {

    /**
     * appId
     */
    @NotNull(message = "appId不能为空。")
    private UserSourceTypeEnum sourceEnum;

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空")
    private Long orderId;

    /**
     * 退款金额
     */
    @NotNull(message = "退款金额不能为空")
    private BigDecimal refundAmount;

    /**
     * 支付回调通知地址
     */
    private String callbackNotifyUrl;
}
